package controller

import (
	"my_server_test/model"
	"my_server_test/datamodel"


	"github.com/gin-gonic/gin"
	"fmt"
)

func LoginLand(land_val *gin.Context){
	data := model.GetData(land_val)
	fmt.Println(data)

	username := land_val.PostForm("username")
	pwd := land_val.PostForm("pwd")
	code := land_val.PostForm("code")

	//fmt.Printf("\n\nrequest ============= %+v", land_val.Request)
	//fmt.Printf("\n\nrequest.UserAgent ============= %+v", land_val.Request.UserAgent())
	sys_user := &datamodel.SystemAdmin{}
	list := model.LoginJudgo(sys_user,username,pwd,code)
	fmt.Println("username=>",username,pwd,list)
}